import java.io.*;
import java.util.Scanner;

public class Test5 {

    public static void main(String[] args) throws IOException {

        String arr ;



        Scanner sc=new Scanner(System.in);
        arr=sc.next();

        int a=0;
        int b=0;
        int c=0;

        for (int i = 0; i < arr.length(); i++) {

            if (arr.charAt(i)>=65&&arr.charAt(i)<=90)
                a++;
            else if(arr.charAt(i)>=97&&arr.charAt(i)<=122)
                b++;
            else c++;
        }



        BufferedWriter out = new BufferedWriter(new FileWriter("e:/03chenhaisheng/1.txt"));

        out.write("大写字母"+a+"个");
        out.write("小写字母"+b+"个");
        out.write("其他字母"+c+"个");

        out.close();

    }
}
